#ifndef WIFIITEMMODEL_H
#define WIFIITEMMODEL_H

#include <QObject>
#include "listmodel.h"

class WiFiItemModel : public ListItem
{
    Q_OBJECT
public:
    WiFiItemModel(QObject *parent = 0): ListItem(parent) {}
    explicit WiFiItemModel ( QString &_wfEssid,
                                QString &_wfChannel,
                                QString &_wfMac,
                                QString &_wfLeveldBm,
                                QString &_wfLevelPer,
                                QString &_wfEncrypt,
                                QString &_wfEncryptPic,
                                QString &_wfChFreq,
                                QObject *parent = 0 );

    ~WiFiItemModel();

    enum Roles {
        wifiEssid = Qt::UserRole+1,
        wifiChannel,
        wifiMac,
        wifiLeveldBm,
        wifiLevelPer,
        wifiEncrypt,
        wifiEncriptPic,
        wifiChFreq
    };

    inline QString wfEssid() const { return wf_essid; }
    inline QString wfChannel() const { return wf_channel; }
    inline QString wfMac() const { return wf_mac; }
    inline QString wfLeveldBm() const { return wf_leveldBm; }
    inline QString wfLevelPer() const { return wf_levelPer; }
    inline QString wfEncrypt() const { return wf_encrypt; }
    inline QString wfEncryptPic() const { return wf_encryptPic; }
    inline QString wfChFreq() const { return wf_chFreq; }

    QVariant data(int role) const;
    QHash<int, QByteArray> roleNames() const;
    
signals:
    
public slots:

private:
    QString wf_essid;
    QString wf_channel;
    QString wf_mac;
    QString wf_leveldBm;
    QString wf_levelPer;
    QString wf_encrypt;
    QString wf_encryptPic;
    QString wf_chFreq;
};

#endif // WIFIITEMMODEL_H
